const count: number = 10
const songName: string = '痴心绝对'

interface IPosition {
  x: number
  y: number
}
const position: IPosition = {
  x: 0,
  y: 0,
}

function add(x: number, y: number) {
  return x + y
}

enum EDirection {
  UP,
  DOWN,
  LEFT,
  RIGHT,
}
function changeDirection(direction: EDirection) {
  console.log(direction)
}

const fomartPoint = (point: IPosition) => {
  console.log('当前坐标：', point)
}

export { count, songName, position, add, changeDirection, fomartPoint, EDirection }
